<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>商品修改</title>
		<link rel="stylesheet" type="text/css" href="./bootstrap-3.3.5/css/bootstrap.css">
		<script type="text/javascript" src="./js/jquery-1.11.3.js"></script>
		<script type="text/javascript" src="./bootstrap-3.3.5/js/bootstrap.js"></script>
	</head>
	<style>
	body
	{
		background-color:#d0e4fe;
	}
	</style>
	<body style=" padding-top: 70px;">
		<div class="container">
			<jsp:include page="../../header.jsp"></jsp:include>
		
		<h2 class="page-header text-center">商品修改</h2>
			<div class="row">
				<div class="col-md-2">
				</div>
				<div class="col-md-8">
					<span style="margin-left: 135px;color: red;">${info }</span>
					<form class="form-horizontal" role="form" action="userupdate" method="post">
						<input type="hidden" name="uid" value="${user.uid }" />
						<div class="form-group">
							<label for="firstname" class="col-sm-2 control-label">商品名：</label>
							<div class="col-sm-10" style="margin-top: 7px">
								${user.name }
							</div>
						</div>
						<div class="form-group">
							<label for="firstname" class="col-sm-2 control-label">状态：</label>
							<div class="col-sm-10" style="margin-top: 7px">
						        <input type="radio" id="yes" name="recommend" value="1" ${user.recommend==1?"checked":"" }><label style="font-weight: normal;" for="yes">上新</label>&nbsp;
						        <input type="radio" id="no" name="recommend" value="0" ${user.recommend==0?"checked":"" }><label style="font-weight: normal;" for="no">下架</label>&nbsp;
							</div>
						</div>
						
						
						<div class="form-group">
							<label for="lastname" class="col-sm-2 control-label">价格：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="lastname" name="age" value="${user.age }" placeholder="请输入价格">
							</div>
						</div>
						<div class="form-group">
							<label for="lastname" class="col-sm-2 control-label">售后热线：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="lastname" name="phone" value="${user.phone }"  placeholder="请售后热线">
							</div>
						</div>
						<div class="form-group">
							<label for="lastname" class="col-sm-2 control-label">生产地址：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="lastname" name="address" value="${user.address }"  placeholder="请输入生产地址">
							</div>
						</div>
						<div class="form-group">
							<label for="lastname" class="col-sm-2 control-label">相关介绍：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="lastname" name="intro" value="${user.intro }"  placeholder="请输入介绍">
							</div>
						</div>
						<div class="form-group">
							<label for="lastname" class="col-sm-2 control-label">商品图片：</label>
							<div class="col-sm-10">
								<img class="img-thumbnail" src="http://localhost:8080/csustwebpro/${user.picture }" width="220px" height="220px"/>
								<button type="button" class="btn btn-default">上传</button>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<div class="checkbox">
									<label>
										<input type="checkbox"> 自动登录
									</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<button type="submit" class="btn btn-primary">修改</button>
							</div>
						</div>
					</form>
				</div>
				<div class="col-md-2">
				</div>
			</div>
 
		</div>
		
		<!-- 尾部 -->
		<hr style="margin-top: 100px;">
		<%@include file="../../footer.jsp" %>
	</body>
</html>